export default {
    nodes: [
        {
            depth: 0,
            busData: { name: 'select_dataset', subType: 'dataset', type: 'metadata' },
            x: 400,
            mappingFormData: { sample_size: 978, datasetId: '1BAtIQVV000' },
            y: 76,
            formData: { sample_size: 978, datasetId: '1BAtIQVV000' },
            style: {},
            id: '1BLCkG20000',
            label: '聚类特征选择',
            sourceName: '选择数据集',
            type: 'success',
            contextMenus: null,
            description: null,
            anchorConfig: {
                top: [{ linkFrom: null, name: '输入' }],
                bottom: [
                    {
                        linkTo: [
                            { type: 'export' },
                            { type: 'data_preprocess' },
                            { type: 'feature_engineering' },
                            { type: 'statistic_analysis' },
                            { subType: 'clustering', type: 'algorithm_model' },
                            { subType: 'binary_classification', type: 'algorithm_model' },
                            { subType: 'multi_classification', type: 'algorithm_model' },
                            { subType: 'regression', type: 'algorithm_model' },
                            { anchorIndex: [1], subType: null, type: 'algorithm_model', value: 'prediction' },
                            { type: 'timeseries' },
                            { type: 'text_analysis' },
                        ],
                        name: '输出',
                    },
                ],
            },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_metadata.f9ad9837.svg' },
            additional: { startTime: 1616759781000, endTime: 1616759787000 },
        },
        {
            depth: 0,
            busData: { name: 'correlation', subType: 'null', type: 'statistic_analysis' },
            x: 203,
            mappingFormData: {
                outputCol: 'features',
                handleInvalid: 'error',
                min: 0,
                method: 'pearson',
                max: 1,
                selectedCols: ['sepal_length', 'sepal_width', 'petal_length', 'petal_width'],
            },
            y: 176,
            formData: {
                outputCol: 'features',
                handleInvalid: 'error',
                min: 0,
                method: 'pearson',
                max: 1,
                selectedCols: ['sepal_length', 'sepal_width', 'petal_length', 'petal_width'],
            },
            style: {},
            id: '1BLCkG20001',
            label: '特征相关性分析',
            sourceName: '相关系数矩阵',
            type: 'success',
            contextMenus: [{ name: '查看分析报告', key: 'report' }],
            description:
                '相关系数算法用于计算一个矩阵中每一列之间的相关系数，范围在[-1,1]之间。计算的时候，count数按两列间同时非空的元素个数计算，两两列之间可能不同。',
            anchorConfig: { top: [{ linkFrom: null, name: '输入' }], bottom: [{ linkTo: [{ type: 'export' }], name: '相关系数输出' }] },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_statistic_analysis.46d6bfa5.svg' },
            additional: { startTime: 1616759788000, endTime: 1616759798000 },
        },
        {
            depth: 0,
            busData: { name: 'prediction', subType: 'null', type: 'algorithm_model' },
            x: 423,
            mappingFormData: { groupCols: ['群组1', '群则2', '群组33333', null, null, null], predictionCol: 'pred' },
            y: 521,
            formData: { groupCols: ['群组1', '群则2', '群组33333'], predictionCol: 'pred' },
            style: {},
            id: '1BLCkG20002',
            label: '聚类预测',
            sourceName: '预测',
            type: 'success',
            contextMenus: null,
            description: '预测组件是专门用于模型预测的组件，两个输入：训练模型和预测数据；输出为预测结果；传统的数据挖掘算法一般都采用该组件进行预测操作。',
            anchorConfig: {
                top: [
                    { linkFrom: null, name: '模型结果输入' },
                    { linkFrom: null, name: '预测数据输入' },
                ],
                bottom: [
                    {
                        linkTo: [
                            { type: 'export' },
                            { type: 'data_preprocess' },
                            { type: 'feature_engineering' },
                            { type: 'statistic_analysis' },
                            { subType: 'evaluate', type: 'algorithm_model', value: 'eval_cluster' },
                            { subType: 'evaluate', type: 'algorithm_model', value: 'eval_binary_class' },
                            { subType: 'evaluate', type: 'algorithm_model', value: 'eval_multi_class' },
                            { subType: 'evaluate', type: 'algorithm_model', value: 'eval_regression' },
                            { type: 'timeseries' },
                            { type: 'text_analysis' },
                        ],
                        name: '输出',
                    },
                ],
            },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_algorithm_model.470be775.svg' },
            additional: { startTime: 1616759815000, endTime: 1616759822000 },
        },
        {
            depth: 0,
            busData: { name: 'eval_cluster', subType: 'evaluate', type: 'algorithm_model' },
            x: 264,
            mappingFormData: { vectorCol: 'features', distanceType: 'EUCLIDEAN', predictionCol: 'pred' },
            y: 614,
            formData: { vectorCol: 'features', distanceType: 'EUCLIDEAN', predictionCol: 'pred' },
            style: {},
            id: '1BLCkG20003',
            label: '聚类评估',
            sourceName: '聚类评估',
            type: 'success',
            contextMenus: [{ name: '查看评估报告', key: 'report' }],
            description: '聚类评估是对聚类算法的预测结果进行效果评估，支持轮廓系数（SC），SSE曲线。',
            anchorConfig: { top: [{ linkFrom: null, name: '预测结果输入' }], bottom: [{ linkTo: [{ type: 'export' }], name: '输出' }] },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_algorithm_model.470be775.svg' },
            additional: { startTime: 1616759822000, endTime: 1616759832000 },
        },
        {
            depth: 0,
            busData: { name: 'minmax_scaler_vector', subType: 'data_quantization', type: 'data_preprocess' },
            x: 421,
            mappingFormData: {
                outputCol: 'features',
                handleInvalid: 'error',
                min: 0,
                max: 1,
                selectedCols: ['sepal_length', 'sepal_width', 'petal_length', 'petal_width'],
            },
            y: 220,
            formData: {
                outputCol: 'features',
                handleInvalid: 'error',
                min: 0,
                max: 1,
                selectedCols: ['sepal_length', 'sepal_width', 'petal_length', 'petal_width'],
            },
            style: {},
            id: '1BLCkG20004',
            label: '特征归一向量化',
            sourceName: '归一向量化',
            type: 'success',
            contextMenus: null,
            description: '将数据归一到min和max之间, 并转化为一列向量数据。',
            anchorConfig: {
                top: [{ linkFrom: null, name: '输入' }],
                bottom: [
                    {
                        linkTo: [
                            { type: 'export' },
                            { type: 'data_preprocess' },
                            { type: 'feature_engineering' },
                            { type: 'statistic_analysis' },
                            { subType: 'clustering', type: 'algorithm_model' },
                            { subType: 'binary_classification', type: 'algorithm_model' },
                            { subType: 'multi_classification', type: 'algorithm_model' },
                            { subType: 'regression', type: 'algorithm_model' },
                            { anchorIndex: [1], subType: null, type: 'algorithm_model', value: 'prediction' },
                            { type: 'timeseries' },
                            { type: 'text_analysis' },
                        ],
                        name: '输出',
                    },
                ],
            },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_data_preprocess.33a7ec7c.svg' },
            additional: { startTime: 1616759788000, endTime: 1616759797000 },
        },
        {
            depth: 0,
            busData: { name: 'data_split', subType: 'null', type: 'data_preprocess' },
            x: 490,
            mappingFormData: { fraction: 0.3 },
            y: 356,
            formData: { fraction: 0.3 },
            style: {},
            id: '1BLCkG20005',
            label: '数据拆分',
            sourceName: '数据拆分',
            type: 'success',
            contextMenus: null,
            description: '将数据集按比例拆分为两部分将数据集按比例拆分为两部分。',
            anchorConfig: {
                top: [{ linkFrom: null, name: '输入' }],
                bottom: [
                    {
                        linkTo: [
                            { type: 'export' },
                            { type: 'data_preprocess' },
                            { type: 'feature_engineering' },
                            { type: 'statistic_analysis' },
                            { subType: 'clustering', type: 'algorithm_model' },
                            { subType: 'binary_classification', type: 'algorithm_model' },
                            { subType: 'multi_classification', type: 'algorithm_model' },
                            { subType: 'regression', type: 'algorithm_model' },
                        ],
                        name: '输出表1',
                    },
                    {
                        linkTo: [
                            { type: 'export' },
                            { type: 'data_preprocess' },
                            { type: 'feature_engineering' },
                            { type: 'statistic_analysis' },
                            { subType: 'clustering', type: 'algorithm_model' },
                            { subType: 'binary_classification', type: 'algorithm_model' },
                            { subType: 'multi_classification', type: 'algorithm_model' },
                            { subType: 'regression', type: 'algorithm_model' },
                            { anchorIndex: [1], subType: null, type: 'algorithm_model', value: 'prediction' },
                            { type: 'timeseries' },
                            { type: 'text_analysis' },
                        ],
                        name: '输出表2',
                    },
                ],
            },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_data_preprocess.33a7ec7c.svg' },
            additional: { startTime: 1616759797000, endTime: 1616759804000 },
        },
        {
            depth: 0,
            busData: { name: 'kmeans', subType: 'clustering', type: 'algorithm_model' },
            x: 295,
            mappingFormData: {
                vectorCol: 'features',
                epsilon: 0.0001,
                outputCol: 'features',
                handleInvalid: 'error',
                min: 0,
                max: 1,
                distanceType: 'EUCLIDEAN',
                maxIter: 20,
                k: 3,
                selectedCols: ['sepal_length', 'sepal_width', 'petal_length', 'petal_width'],
                initSteps: 2,
                initMode: 'K_MEANS_PARALLEL',
            },
            y: 427,
            formData: {
                vectorCol: 'features',
                epsilon: 0.0001,
                outputCol: 'features',
                handleInvalid: 'error',
                min: 0,
                max: 1,
                distanceType: 'EUCLIDEAN',
                maxIter: 20,
                k: 3,
                selectedCols: ['sepal_length', 'sepal_width', 'petal_length', 'petal_width'],
                initSteps: 2,
                initMode: 'K_MEANS_PARALLEL',
            },
            style: {},
            id: '1BLCkG20006',
            label: 'KMeans聚类训练',
            sourceName: 'KMeans',
            type: 'success',
            contextMenus: [{ name: '查看评估报告', key: 'report' }],
            description:
                'KMeans 是一个经典的聚类算法。基本思想是：以空间中k个点为中心进行聚类，对最靠近他们的对象归类。通过迭代的方法，逐次更新各聚类中心的值，直至得到最好的聚类结果。',
            anchorConfig: {
                top: [{ linkFrom: null, name: '训练数据输入' }],
                bottom: [
                    { linkTo: [{ type: 'export' }], name: '自动评估报告输出' },
                    { linkTo: [{ type: 'export' }, { anchorIndex: [0], subType: null, type: 'algorithm_model', value: 'prediction' }], name: '模型结果输出' },
                ],
            },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_algorithm_model.470be775.svg' },
            additional: { startTime: 1616759805000, endTime: 1616759815000 },
        },
        {
            depth: 0,
            busData: { name: 'export_database', subType: 'database', type: 'export' },
            x: 573,
            mappingFormData: { sample_size: 978, datasetId: '1BAtIQVV000', tableName: 'test_0001' },
            y: 616,
            formData: { sample_size: 978, datasetId: '1BAtIQVV000', tableName: 'test_0001' },
            style: {},
            id: '1BLCkG20007',
            label: '导出到数据库',
            sourceName: '导出到数据库',
            type: 'success',
            contextMenus: null,
            description: null,
            anchorConfig: { top: [{ linkFrom: null, name: '输入' }], bottom: [{ linkTo: null, name: '输出' }] },
            logoIcon: { img: 'http://192.168.10.50:1062/static/img/ia_export.30bf42a6.svg' },
            additional: { startTime: 1616759822000, endTime: 1616759828000 },
        },
    ],
    edges: [
        {
            endPoint: { x: 203, y: 158.5, anchorIndex: 0 },
            sourceAnchor: 1,
            targetAnchor: 0,
            startPoint: { x: 400, y: 93.5, anchorIndex: 1 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2cRcTFcjSvA',
            source: '1BLCkG20000',
            type: 'flow-cubic-round',
            target: '1BLCkG20001',
        },
        {
            endPoint: { x: 264, y: 596.5, anchorIndex: 0 },
            sourceAnchor: 2,
            targetAnchor: 0,
            startPoint: { x: 423, y: 538.5, anchorIndex: 2 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2cRfwZNhvEM',
            source: '1BLCkG20002',
            type: 'flow-cubic-round',
            target: '1BLCkG20003',
        },
        {
            endPoint: { x: 421, y: 202.5, anchorIndex: 0 },
            sourceAnchor: 1,
            targetAnchor: 0,
            startPoint: { x: 400, y: 93.5, anchorIndex: 1 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2JXIf6hUrbg',
            source: '1BLCkG20000',
            type: 'flow-cubic-round',
            target: '1BLCkG20004',
        },
        {
            endPoint: { x: 490, y: 338.5, anchorIndex: 0 },
            sourceAnchor: 1,
            targetAnchor: 0,
            startPoint: { x: 421, y: 237.5, anchorIndex: 1 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2K3fLlfB0DV',
            source: '1BLCkG20004',
            type: 'flow-cubic-round',
            target: '1BLCkG20005',
        },
        {
            endPoint: { x: 295, y: 409.5, anchorIndex: 0 },
            sourceAnchor: 1,
            targetAnchor: 0,
            startPoint: { x: 459.8333333333333, y: 373.5, anchorIndex: 1 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2K3ggAd8GFw',
            source: '1BLCkG20005',
            type: 'flow-cubic-round',
            target: '1BLCkG20006',
        },
        {
            endPoint: { x: 453.16666666666663, y: 503.5, anchorIndex: 1 },
            sourceAnchor: 2,
            targetAnchor: 1,
            startPoint: { x: 520.1666666666666, y: 373.5, anchorIndex: 2 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2Ksh0A3VmB9',
            source: '1BLCkG20005',
            type: 'flow-cubic-round',
            target: '1BLCkG20002',
        },
        {
            endPoint: { x: 392.8333333333333, y: 503.5, anchorIndex: 0 },
            sourceAnchor: 2,
            targetAnchor: 0,
            startPoint: { x: 325.16666666666663, y: 444.5, anchorIndex: 2 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2Ksh2idtMa6',
            source: '1BLCkG20006',
            type: 'flow-cubic-round',
            target: '1BLCkG20002',
        },
        {
            endPoint: { x: 573, y: 598.5, anchorIndex: 0 },
            sourceAnchor: 2,
            targetAnchor: 0,
            startPoint: { x: 423, y: 538.5, anchorIndex: 2 },
            style: {
                active: { stroke: 'rgb(95, 149, 255)', lineWidth: 1 },
                selected: { shadowBlur: 10, 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', shadowColor: 'rgb(95, 149, 255)', lineWidth: 2 },
                highlight: { 'text-shape': { fontWeight: 500 }, stroke: 'rgb(95, 149, 255)', lineWidth: 2 },
                inactive: { stroke: 'rgb(234, 234, 234)', lineWidth: 1 },
                disable: { stroke: 'rgb(245, 245, 245)', lineWidth: 1 },
            },
            id: '2KwQbKjFVkL',
            source: '1BLCkG20002',
            type: 'flow-cubic-round',
            target: '1BLCkG20007',
        },
    ],
    combos: [],
};
